<html>
<head><meta charset="utf-8"><title>toml · t-compiler/rust-analyzer · Zulip Chat Archive</title></head>
<h2>Stream: <a href="https://rust-lang.github.io/zulip_archive/stream/185405-t-compiler/rust-analyzer/index.html">t-compiler/rust-analyzer</a></h2>
<h3>Topic: <a href="https://rust-lang.github.io/zulip_archive/stream/185405-t-compiler/rust-analyzer/topic/toml.html">toml</a></h3>

<hr>

<base href="https://rust-lang.zulipchat.com">

<head><link href="https://rust-lang.github.io/zulip_archive/style.css" rel="stylesheet"></head>

<a name="213666684"></a>
<h4><a href="https://rust-lang.zulipchat.com#narrow/stream/185405-t-compiler/rust-analyzer/topic/toml/near/213666684" class="zl"><img src="https://rust-lang.github.io/zulip_archive/assets/img/zulip.svg" alt="view this post on Zulip" style="width:20px;height:20px;"></a> pksunkara <a href="https://rust-lang.github.io/zulip_archive/stream/185405-t-compiler/rust-analyzer/topic/toml.html#213666684">(Oct 17 2020 at 19:18)</a>:</h4>
<p>Hey <span class="user-mention" data-user-id="133169">@matklad</span> <span class="user-mention" data-user-id="258149">@std::Veetaha</span>, I was looking around for libraries that can edit <code>Cargo.toml</code> and found <a href="https://github.com/matklad/tom">https://github.com/matklad/tom</a>. I have tried <code>toml_edit</code> but it is doing a lot of changing. What I would need is an editor that would preserve everything else except the parts we edit. Is that the direction that repo will go in?</p>



<a name="213666713"></a>
<h4><a href="https://rust-lang.zulipchat.com#narrow/stream/185405-t-compiler/rust-analyzer/topic/toml/near/213666713" class="zl"><img src="https://rust-lang.github.io/zulip_archive/assets/img/zulip.svg" alt="view this post on Zulip" style="width:20px;height:20px;"></a> matklad <a href="https://rust-lang.github.io/zulip_archive/stream/185405-t-compiler/rust-analyzer/topic/toml.html#213666713">(Oct 17 2020 at 19:20)</a>:</h4>
<p>Yes, the question is "when"</p>



<a name="213666756"></a>
<h4><a href="https://rust-lang.zulipchat.com#narrow/stream/185405-t-compiler/rust-analyzer/topic/toml/near/213666756" class="zl"><img src="https://rust-lang.github.io/zulip_archive/assets/img/zulip.svg" alt="view this post on Zulip" style="width:20px;height:20px;"></a> matklad <a href="https://rust-lang.github.io/zulip_archive/stream/185405-t-compiler/rust-analyzer/topic/toml.html#213666756">(Oct 17 2020 at 19:20)</a>:</h4>
<p>plausible answer is "when rust-analyzer is finished" :)</p>



<a name="213667499"></a>
<h4><a href="https://rust-lang.zulipchat.com#narrow/stream/185405-t-compiler/rust-analyzer/topic/toml/near/213667499" class="zl"><img src="https://rust-lang.github.io/zulip_archive/assets/img/zulip.svg" alt="view this post on Zulip" style="width:20px;height:20px;"></a> pksunkara <a href="https://rust-lang.github.io/zulip_archive/stream/185405-t-compiler/rust-analyzer/topic/toml.html#213667499">(Oct 17 2020 at 19:39)</a>:</h4>
<p>Oof. I would say that we already solved this for rust-analyzer, right? So, can I just copy patterns and api from RA to it and then release the editor/visitor?</p>



<a name="213667541"></a>
<h4><a href="https://rust-lang.zulipchat.com#narrow/stream/185405-t-compiler/rust-analyzer/topic/toml/near/213667541" class="zl"><img src="https://rust-lang.github.io/zulip_archive/assets/img/zulip.svg" alt="view this post on Zulip" style="width:20px;height:20px;"></a> pksunkara <a href="https://rust-lang.github.io/zulip_archive/stream/185405-t-compiler/rust-analyzer/topic/toml.html#213667541">(Oct 17 2020 at 19:40)</a>:</h4>
<p>I am not interested in LSP for now. Only the editor but it would be semantic</p>



<a name="213751153"></a>
<h4><a href="https://rust-lang.zulipchat.com#narrow/stream/185405-t-compiler/rust-analyzer/topic/toml/near/213751153" class="zl"><img src="https://rust-lang.github.io/zulip_archive/assets/img/zulip.svg" alt="view this post on Zulip" style="width:20px;height:20px;"></a> pksunkara <a href="https://rust-lang.github.io/zulip_archive/stream/185405-t-compiler/rust-analyzer/topic/toml.html#213751153">(Oct 19 2020 at 07:32)</a>:</h4>
<p><span class="user-mention" data-user-id="133169">@matklad</span> Can I go ahead?</p>



<a name="213757394"></a>
<h4><a href="https://rust-lang.zulipchat.com#narrow/stream/185405-t-compiler/rust-analyzer/topic/toml/near/213757394" class="zl"><img src="https://rust-lang.github.io/zulip_archive/assets/img/zulip.svg" alt="view this post on Zulip" style="width:20px;height:20px;"></a> matklad <a href="https://rust-lang.github.io/zulip_archive/stream/185405-t-compiler/rust-analyzer/topic/toml.html#213757394">(Oct 19 2020 at 08:49)</a>:</h4>
<p>Yup</p>



<a name="213757439"></a>
<h4><a href="https://rust-lang.zulipchat.com#narrow/stream/185405-t-compiler/rust-analyzer/topic/toml/near/213757439" class="zl"><img src="https://rust-lang.github.io/zulip_archive/assets/img/zulip.svg" alt="view this post on Zulip" style="width:20px;height:20px;"></a> matklad <a href="https://rust-lang.github.io/zulip_archive/stream/185405-t-compiler/rust-analyzer/topic/toml.html#213757439">(Oct 19 2020 at 08:49)</a>:</h4>
<p>(although I musth confess I am not sure I understand the question -- the code is MIT/Apache licensed, so you can do that without asking anybody)</p>



<hr><p>Last updated: Aug 07 2021 at 22:04 UTC</p>
</html>